/**
 * Copyright (C), 2020, Y2 T205
 * FileName: SearchResult
 * Author: Lenovo
 * Date: 2020-05-22 18:46
 * Description:
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */


package com.atguigu.gulimall.search.vo;


import com.atguigu.common.to.es.SkuEsModel;

import lombok.Data;

import java.util.List;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Lenovo
 * @create 2020-05-22
 * @since 1.0.0
 * 传回页面的结果
 */
@Data
public class SearchResult {

    //查询到的所有商品的信息
    private List<SkuEsModel> products;

    /*以下是分页信息
    * */
    private Integer pageNum;//当前的页码
    private Long total;   //总记录数
     private Integer totalPages; //总页码

    private List<Integer> pageNavs;


    private List<BrandVo> brands;  //当前查询到的结果，所有涉及的品牌
    private List<CatalogVo> catalogs;  //当前查询到的结果
    private List<AttrVo> attrs;  //当前查询到的结果，所有涉及到的属性
    private List<SkuEsModel> esModels;

    /*以上是返回给也买你的所有信息*/
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }


    @Data
    public static class AttrVo{
         private Long attrId;
         private String attrName;
         private List<String> attrValue;
    }



}
